<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="../css/style.css"/>
		<link rel="stylesheet" href="../css/iconfont.css" />
		<link rel="stylesheet" href="../css/wallet.css" />
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
		   <a class=" mui-icon mui-icon-left-nav mui-pull-left" href="JavaScript:history.go(-1)"></a>
		    <h1 class="mui-title">提现记录</h1>
		</header>
		<div class="mui-content record_content">
			<!--<ul class="record_nav clearfix">
				<li class="left">日期</li>
				<li class="center">提现金额</li>
				<li class="right">状态</li>
			</ul>-->
		    <ul class="record_list2" id="sj_score">
		    	<!--<li class="less clearfix">
		    		<div class="left">
		    			<p class="list_nam">银行类型：尾号<em>3456</em></p>
		    			<p class="list_time">2017/4/17</p>
		    		</div>
		    		<div class="center">－66</div>
		    		<div class="right">66</div>
		    	</li>-->
		    </ul>
		</div>
	</body>
</html>
<script type="text/javascript" src="../js/jquery.min.js"></script>
	<script type="text/javascript" src="../js/app.js"></script>
	<script type="text/javascript">
		var member = JSON.parse(localStorage.getItem('member'));
		$.ajax({
			url: APP.api_url + 'Wallet/tixianjilu',
			data: {
				token: member['token'],
				uid: getUid()
			},
			success: function(data) {
				if(data.code == 200) {
					var tixianList = data.data;	
					var tixian_htm = "";
					for(var i = tixianList.length-1; i>=0; i--) {
						var status="";
						if(tixianList[i].cash_status==1){
							status="处理中";
						}else if(tixianList[i].cash_status==2){
							status="已完成";
						}else if(tixianList[i].cash_status==3){
							status="失败";
						}
						var user_price;
						if(tixianList[i].balance>0){
							user_price="-"+tixianList[i].balance;
						}
						tixian_htm +=	"<li class='less clearfix'>"+
			    					"<div class='left'>"+
			    						"<p class='list_nam'>"+status+"</p>"+
						    			"<p class='list_time'>"+tixianList[i].createtime+"</p>"+
			    					"</div>"+
			    					"<div class='right' >"+user_price+"</div></li>";
					}
					//$("#sj_score").empty();
					$("#sj_score").append(tixian_htm);
				} else {
					$("#sj_score").html('<p style="text-align:center;width: 100%;background-color: #fff;height: 35px;line-height: 35px;">暂无提现记录!!</p>');
					//console.log(data.msg);
				}	
			}
		})
				
	</script>